package pkg01.pruebasintroduccionjava;

public class PruebasIntroduccionJava {

    public static void main(String[] args) {
        System.out.println("Probando java".toUpperCase());
        int edad = 34;
        System.out.println("Edad " + edad);
        Persona per1;        
        per1 = new Persona();        
        per1.setEdad(25);
        per1.setNombre("Luis");
        System.out.println(per1.getNombre());
        Persona per2 = per1;
        System.out.println(per2.getNombre());

        System.out.println(per1==per2);
        
        per1 = new Persona();
        System.out.println(per1.getNombre());
        
        System.out.println(per1==per2);
        String cad1 = new String("a");
        String cad2 = new String("a");
        System.out.println(cad1==cad2);
        
        System.out.println(cad1.equals(cad2));
        
        
    }
}
